﻿@{
    ViewBag.Title = "Index";
}
<h2>
    Index</h2>
<script src="@Url.Content("~/Content/ckeditor/ckeditor.js")" type="text/javascript"></script>
<script src="../../Scripts/Jquery/jquery-1.7.1-vsdoc.js" type="text/javascript"></script>
<textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
<script type="text/javascript">
    var url1 = '@Url.Action("CkImageUpLoad", "demo")';
    var url2 = '@Url.Action("CkImageUpLoad", "demo")';
    var url3 = '@Url.Content("~/Handler/UploadImage.ashx")';
    CKEDITOR.replace('editor1', {
        filebrowserImageBrowseUrl: url1,
        filebrowserUploadUrl: url2,
        filebrowserImageWindowWidth: '780',
        filebrowserImageWindowHeight: '645',
		//skin : 'chris',
		//skin : 'black',
		skin : 'kama',
		//skin : 'office2003',
		//skin : 'v2',
		height:'400',
		toolbar: 'Full',
       // filebrowserBrowseUrl : '/browser/browse.php',
       // filebrowserImageBrowseUrl :url3,
       // filebrowserUploadUrl : '/uploader/upload.php',
        filebrowserImageUploadUrl: url3
    });   
</script>
